#pragma once
#include<iostream>
using namespace std;

class Date
{
public:
	Date(const int year = 1, const int month = 1, const int day = 1);

	//const Date& operator=(const Date& d);

	Date& operator+=(int days);
	Date operator+(int days) const;

	Date& operator++();
	Date operator++(int);

	bool operator>(const Date d)const;
	bool operator==(const Date d)const;
	bool operator>=(const Date d)const;
	bool operator<(const Date d)const;
	bool operator<=(const Date d)const;

	int operator-(const Date& d) const;

	friend ostream& operator<<(ostream& out, Date d);

	const Date* operator&()const
	{
		return nullptr;
	}

private:
	int _year;
	int _month;
	int _day;
};


int GetMonthDay(const int year, const int month);
